package com.demo.config;


import common.utils.DataCryptoUtils;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <p>自定义属性</p>
 *@author zwy
 *@date 2025/3/14 13:42
*/

@Data
@Configuration
@ConfigurationProperties(prefix = "sys")
public class SystemConf {

    private String accountPageKey;
    public String getAccountKey() {
        return accountPageKey;
    }
    public void setAccountKey(String accountKey) {
        this.accountPageKey = accountKey;

    }
    public void Crypto(String accountKey) {
        accountKey = this.accountPageKey;
        DataCryptoUtils.accountSalt(accountKey);

    }


}
